-
Notifications
You must be signed in to change notification settings - Fork 35
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
docs(headless-ssr-commerce): log product view events #4833
Conversation
Pull Request ReportPR Title✅ Title follows the conventional commit spec. Live demo linksBundle Size
SSR Progress
Detailed logssearch : buildInteractiveResultsearch : buildInteractiveInstantResult search : buildInteractiveRecentResult search : buildInteractiveCitation search : buildGeneratedAnswer recommendation : missing SSR support case-assist : missing SSR support insight : missing SSR support commerce : missing SSR support |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@fbeaudoincoveo why is this part of the remix sample so different ?
0a24fe1#diff-b70c5c4a8823d5a74fd87ca4f08d3b469b56258a3ab3c8bcd3e929ef13cd3dd8
Ah, I realized while working the remix sample that because we were using a ref, a new view event was not getting logged if you were already on a product description page, searched for another product in the standalone search box, and clicked the instant product link to open it. The same logic should probably apply in the Nextjs sample. |
Thanks for the explanation. The bug didn't happen when I tried to replicate it in the Next.js sample, but I still carried over the changes for the sake of simplicity and uniformity 👍 |
https://coveord.atlassian.net/browse/KIT-3826
This PR adds a component to log product view events on PDPs.
Relevant CSR docs: https://docs.coveo.com/en/o8ce0239#displaying-a-product-on-a-product-detail-page